package com.kkm.service.Imp;

import com.kkm.dao.AdminDao;
import com.kkm.dao.Imp.AdminDaoImp;
import com.kkm.pojo.*;
import com.kkm.service.AdminService;

import java.util.List;
import java.util.Map;

public class AdminServiceImp implements AdminService{
    private AdminDao adminDao=new AdminDaoImp();

    @Override
    public Admin login(Admin admin) {
        return adminDao.login(admin);
    }

    @Override
    public Admin checkAdminById(String aid) {
        return adminDao.checkAdminById(Integer.parseInt(aid));
    }

    @Override
    public void changePass(Map<String, String[]> condition, String aid) {
       adminDao.changePass(condition,Integer.parseInt(aid));
    }

}
